package com.newgrand.controller;

import com.newgrand.model.I8ReturnModel;
import com.newgrand.service.impl.CntmChangeService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: zhanglixin
 * @Data: 2023/6/24 20:23
 * @Description: TODO
 */
@Slf4j
@Api(tags = "手工同步用")
@RestController
@RequestMapping("/cntmChange")
public class CntmChangeController {

    @Autowired
    private CntmChangeService cntmChangeService;

    @RequestMapping(value = "/query", method = RequestMethod.POST)
    public @ResponseBody
    Object Query(@RequestBody String data) throws Exception {
        return cntmChangeService.Query(data);
    }

    @RequestMapping(value = "/pushMq",method = RequestMethod.GET)
    public Object pushMq(String phid) throws Exception {
        return cntmChangeService.pushMq(phid);
    }

}
